local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1, L11_1, L12_1
L0_1 = {}
L0_1.group_id = 133008334
L1_1 = {}
monsters = L1_1
L1_1 = {}
npcs = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 334001
L2_1.gadget_id = 70211112
L3_1 = {}
L3_1.x = 672.568
L3_1.y = 200.191
L3_1.z = -1085.627
L2_1.pos = L3_1
L3_1 = {}
L3_1.x = 0.534
L3_1.y = 20.896
L3_1.z = 357.121
L2_1.rot = L3_1
L2_1.level = 26
L2_1.drop_tag = "\233\155\170\229\177\177\232\167\163\232\176\156\228\184\173\231\186\167\232\146\153\229\190\183"
L3_1 = GadgetState
L3_1 = L3_1.ChestLocked
L2_1.state = L3_1
L2_1.isOneoff = true
L2_1.persistent = true
L3_1 = {}
L3_1.name = "chest"
L3_1.exp = 1
L2_1.explore = L3_1
L2_1.area_id = 10
L3_1 = {}
L3_1.config_id = 334002
L3_1.gadget_id = 70220055
L4_1 = {}
L4_1.x = 670.478
L4_1.y = 200.191
L4_1.z = -1088.211
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 358.163
L4_1.y = 359.992
L4_1.z = 0.475
L3_1.rot = L4_1
L3_1.level = 30
L3_1.area_id = 10
L4_1 = {}
L4_1.config_id = 334003
L4_1.gadget_id = 70220055
L5_1 = {}
L5_1.x = 676.178
L5_1.y = 199.991
L5_1.z = -1083.599
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.162
L5_1.y = -0.005
L5_1.z = 356.292
L4_1.rot = L5_1
L4_1.level = 30
L4_1.area_id = 10
L5_1 = {}
L5_1.config_id = 334004
L5_1.gadget_id = 70220055
L6_1 = {}
L6_1.x = 672.691
L6_1.y = 200.145
L6_1.z = -1083.026
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 2.763
L6_1.y = 359.969
L6_1.z = 358.702
L5_1.rot = L6_1
L5_1.level = 30
L5_1.area_id = 10
L6_1 = {}
L6_1.config_id = 334005
L6_1.gadget_id = 70220055
L7_1 = {}
L7_1.x = 680.291
L7_1.y = 200.137
L7_1.z = -1079.577
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 4.246
L7_1.y = 0.679
L7_1.z = 18.167
L6_1.rot = L7_1
L6_1.level = 30
L6_1.area_id = 10
L7_1 = {}
L7_1.config_id = 334006
L7_1.gadget_id = 70220055
L8_1 = {}
L8_1.x = 672.258
L8_1.y = 200.196
L8_1.z = -1086.798
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.318
L8_1.y = 0.017
L8_1.z = 3.882
L7_1.rot = L8_1
L7_1.level = 30
L7_1.area_id = 10
L8_1 = {}
L8_1.config_id = 334007
L8_1.gadget_id = 70220055
L9_1 = {}
L9_1.x = 679.352
L9_1.y = 200.338
L9_1.z = -1083.995
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 7.024
L9_1.y = 0.6
L9_1.z = 9.753
L8_1.rot = L9_1
L8_1.level = 30
L8_1.area_id = 10
L9_1 = {}
L9_1.config_id = 334008
L9_1.gadget_id = 70220055
L10_1 = {}
L10_1.x = 674.303
L10_1.y = 200.098
L10_1.z = -1091.412
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 358.21
L10_1.y = 359.986
L10_1.z = 0.895
L9_1.rot = L10_1
L9_1.level = 30
L9_1.area_id = 10
L10_1 = {}
L10_1.config_id = 334009
L10_1.gadget_id = 70220055
L11_1 = {}
L11_1.x = 676.505
L11_1.y = 200.169
L11_1.z = -1087.064
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 0.0
L11_1.y = 0.0
L11_1.z = 7.125
L10_1.rot = L11_1
L10_1.level = 30
L10_1.area_id = 10
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_1
L1_1[4] = L5_1
L1_1[5] = L6_1
L1_1[6] = L7_1
L1_1[7] = L8_1
L1_1[8] = L9_1
L1_1[9] = L10_1
gadgets = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 334010
L3_1 = RegionShape
L3_1 = L3_1.SPHERE
L2_1.shape = L3_1
L2_1.radius = 5
L3_1 = {}
L3_1.x = 671.352
L3_1.y = 201.378
L3_1.z = -1085.003
L2_1.pos = L3_1
L2_1.area_id = 10
L1_1[1] = L2_1
regions = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 1334010
L2_1.name = "ENTER_REGION_334010"
L3_1 = EventType
L3_1 = L3_1.EVENT_ENTER_REGION
L2_1.event = L3_1
L2_1.source = ""
L2_1.condition = "condition_EVENT_ENTER_REGION_334010"
L2_1.action = "action_EVENT_ENTER_REGION_334010"
L3_1 = {}
L3_1.config_id = 1334011
L3_1.name = "ANY_GADGET_DIE_334011"
L4_1 = EventType
L4_1 = L4_1.EVENT_ANY_GADGET_DIE
L3_1.event = L4_1
L3_1.source = ""
L3_1.condition = "condition_EVENT_ANY_GADGET_DIE_334011"
L3_1.action = "action_EVENT_ANY_GADGET_DIE_334011"
L1_1[1] = L2_1
L1_1[2] = L3_1
triggers = L1_1
L1_1 = {}
variables = L1_1
L1_1 = {}
L1_1.suite = 1
L1_1.end_suite = 0
L1_1.rand_suite = false
init_config = L1_1
L1_1 = {}
L2_1 = {}
L3_1 = {}
L2_1.monsters = L3_1
L3_1 = {}
L4_1 = 334001
L5_1 = 334002
L6_1 = 334003
L7_1 = 334004
L8_1 = 334005
L9_1 = 334006
L10_1 = 334007
L11_1 = 334008
L12_1 = 334009
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L3_1[8] = L11_1
L3_1[9] = L12_1
L2_1.gadgets = L3_1
L3_1 = {}
L4_1 = 334010
L3_1[1] = L4_1
L2_1.regions = L3_1
L3_1 = {}
L4_1 = "ENTER_REGION_334010"
L5_1 = "ANY_GADGET_DIE_334011"
L3_1[1] = L4_1
L3_1[2] = L5_1
L2_1.triggers = L3_1
L2_1.rand_weight = 100
L1_1[1] = L2_1
suites = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = A1_2.param1
  if L2_2 ~= 334010 then
    L2_2 = false
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.GetRegionEntityCount
  L3_2 = A0_2
  L4_2 = {}
  L5_2 = A1_2.source_eid
  L4_2.region_eid = L5_2
  L5_2 = EntityType
  L5_2 = L5_2.AVATAR
  L4_2.entity_type = L5_2
  L2_2 = L2_2(L3_2, L4_2)
  if L2_2 < 1 then
    L2_2 = false
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.CheckRemainGadgetCountByGroupId
  L3_2 = A0_2
  L4_2 = {}
  L4_2.group_id = 133008334
  L2_2 = L2_2(L3_2, L4_2)
  if L2_2 == 1 then
    L2_2 = false
    return L2_2
  end
  L2_2 = true
  return L2_2
end
condition_EVENT_ENTER_REGION_334010 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 334001
  L5_2 = GadgetState
  L5_2 = L5_2.ChestLocked
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_ENTER_REGION_334010 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2
  L2_2 = ScriptLib
  L2_2 = L2_2.CheckRemainGadgetCountByGroupId
  L3_2 = A0_2
  L4_2 = {}
  L4_2.group_id = 133008334
  L2_2 = L2_2(L3_2, L4_2)
  if L2_2 ~= 1 then
    L2_2 = false
    return L2_2
  end
  L2_2 = true
  return L2_2
end
condition_EVENT_ANY_GADGET_DIE_334011 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 334001
  L5_2 = GadgetState
  L5_2 = L5_2.Default
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_ANY_GADGET_DIE_334011 = L1_1
